package org.example.kidscode.repository;

import org.example.kidscode.entity.Course;  // 确保路径与实体类实际位置一致！
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface CourseRepository extends JpaRepository<Course, String> {
    List<Course> findByTeacherId(String teacherId);
    List<Course> findByCourseType(String courseType);
}